#ifndef TWITTOZ_H
#define TWITTOZ_H

#include <QtGui/QMainWindow>
#include "login.h"
#include "twitterAPI.h"
#include "JsonParser.h"
#include <QList>


namespace Ui {
    class Twittoz;
}

class Twittoz : public QMainWindow {
    Q_OBJECT
    Q_DISABLE_COPY(Twittoz)
public:
    explicit Twittoz(QWidget *parent = 0);
    virtual ~Twittoz();

    public slots:
        void on_textEdit_textChanged();
        void on_Send_clicked();
        void on_refresh_clicked();
        void loadAuth();

protected:
    virtual void changeEvent(QEvent *e);
    void fillTweets();

private:
    Ui::Twittoz *m_ui;
    QString _user;
    QString _pass;
    TwitterAPI *_api;
};

#endif // TWITTOZ_H
